package xna.android.Telas;

import xna.android.SpriteFont;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.view.MotionEvent;
import android.view.SurfaceView;
import br.com.R;

public class Credits extends SurfaceView
{
	private SpriteFont spriteFont;
	private boolean isTouched;
	
	public Credits(Context Content)
	{
		super(Content);
		this.spriteFont = new SpriteFont(BitmapFactory.decodeResource(getResources(), R.drawable.fonte_verde));
		isTouched = false;
	}
	
	public void Update()
	{
	}

	public boolean isTouched() {
		return isTouched;
	}
	
	public void Draw(Canvas spriteBatch)
	{
		spriteBatch.drawColor(Color.BLACK);
		spriteFont.drawString(spriteBatch, "Marcos Anderson", 100, 230);
	}

	public boolean onTouchEvent(MotionEvent event) {
		
		if (event.getAction() == MotionEvent.ACTION_DOWN)
			isTouched = true;
		
		if (event.getAction() == MotionEvent.ACTION_UP)
			isTouched = false;
		
		return true;
	}

}
